<?php
/**
 * Model de Anotacao
 * @filesource  06/04/2011
 * @author      Estrada Virtual <http://estradavirtual.com.br>
 * @copyright   Copyright <2011> Estrada Virtual
 * @package     <<application>>
 * @subpackage  <<application>>.application.models
 * @version     $Id$
 */
class Model_Anotacao extends App_Db_Table
{
    protected $_name             = 'anotacao';
    protected $_primary          = array('id_anotacao');
    protected $_referenceMap     = array(
                    'Cliente' => array(
                            'columns'       => 'fk_cliente',
                            'refTableClass' => 'Model_Cliente',
                            'refColumns'    => 'id_cliente',
                         ),
                    'Projeto' => array(
                            'columns'       => 'fk_projeto',
                            'refTableClass' => 'Model_Projeto',
                            'refColumns'    => 'id_projeto',
                         ),
                    'Servico' => array(
                            'columns'       => 'fk_servico',
                            'refTableClass' => 'Model_Servico',
                            'refColumns'    => 'id_servico',
                         ),
                    'Tarefa' => array(
                            'columns'       => 'fk_tarefa',
                            'refTableClass' => 'Model_Tarefa',
                            'refColumns'    => 'id_tarefa',
                         ),
                    'Usuario' => array(
                            'columns'       => 'fk_usuario',
                            'refTableClass' => 'Model_Usuario',
                            'refColumns'    => 'id_usuario',
                         ));
}
